<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			// 转换为布尔型方法Boolean();
			// 一般代表否定和空的值会转换为false
			var a = null;
			var b = undefined;
			var c = '';
			var d = 0;
			var e = NaN;
			var f = '0';
			
			console.log(Boolean(a));
			console.log(Boolean(b));
			console.log(Boolean(c));
			console.log(Boolean(d));
			console.log(Boolean(e));
			console.log(Boolean(f));
			// 只需要记住前面五个会转换为false的值
			// 因为最后一个是字符串不为空所以转换为了true
		</script>
	</head>
	<body>
	</body>
</html>
